Skip to content

Conversation

@tony-josi-aws
Copy link
Member

Description

This PR fixes a race condition in DHCP - v4.
While the DHCP state machine is processing response from a DHCP server, causing it to change the DHCP state, if another DHCP server responds to the DUT, state mismatch will cause the vDHCPProcess function to result in an infinite loop.

Thanks Raghav for reporting this issue in the forum post.

Test Steps

STM32F4 - DHCP v4 tests

Checklist:

  • I have tested my changes. No regression in existing tests.
  • I have modified and/or added unit-tests to cover the code changes in this Pull Request.

Related Issue

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@tony-josi-aws tony-josi-aws requested a review from a team as a code owner February 28, 2025 15:53
@tony-josi-aws tony-josi-aws merged commit c78910a into FreeRTOS:main Mar 5, 2025
10 checks passed
lightbulbkhuang pushed a commit to iotlabtpe/FreeRTOS-Plus-TCP-MDNS that referenced this pull request Jul 9, 2025
* Initial

* DHCP full code coverage

* Fix formatting
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants